package com.lzx.article.controller.web;

import com.lzx.article.service.OneSortService;
import com.lzx.common.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/article/oneSort/web")
public class WebOneSortController {
    @Resource
    private OneSortService oneSortService;

    //获取一级和二级标签
    @GetMapping("/getOneAndTwoSortList")
    public R getOneAndTwoSortList() {
        return oneSortService.getOneAndTwoSortList();
    }

    //获取一级标签列表
    @GetMapping("/getOneSortList")
    public R getOneSortList() {
        return oneSortService.getOneSortList();
    }
}
